package cn.stylefeng.guns.modular.business.frequency.transportsign.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 运单签收记录表
 *
 * @author yujie
 * @date 2023/05/09 17:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_transport_sign")
public class TransportSign extends BaseEntity {

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * transport_id
     */
    @TableField("transport_id")
    private Long transportId;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 需要再次发运 1.是 2.否
     */
    @TableField("need_more_transport")
    private Integer needMoreTransport;

    /**
     * 签收图片
     */
    @TableField("images")
    private String images;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;

    //支付方式
    @TableField(value = "sign_pay_type")
    private String signPayType;
    //待收金额
    @TableField(value = "sign_gather_money")
    private BigDecimal signGatherMoney;
    //转账凭证
    @TableField(value = "sign_voucher")
    private String signVoucher;

    public TransportSign() {
    }

    public TransportSign(Long id, Long transportId, Long orderId, String remark, Integer needMoreTransport, String images, Long tenantId, String signPayType, BigDecimal signGatherMoney, String signVoucher) {
        this.id = id;
        this.transportId = transportId;
        this.orderId = orderId;
        this.remark = remark;
        this.needMoreTransport = needMoreTransport;
        this.images = images;
        this.tenantId = tenantId;
        this.signPayType = signPayType;
        this.signGatherMoney = signGatherMoney;
        this.signVoucher = signVoucher;
    }
}
